<?php

$config = array(
					'add_user_admin' => array(
											array(
													'field' => 'user_username',
													'label' => 'Username',
													'rules' => 'required|min_length[4]|max_length[12]|callback_username_exists'
												),
											array(
													'field' => 'display_name',
													'label' => 'Display Name',
													'rules' => 'required|min_length[4]|max_length[60]'
												),
											array(
													'field' => 'user_password',
													'label' => 'Password',
													'rules' => 'required|min_length[5]|max_length[12]|matches[user_password2]'
												),	
											array(
													'field' => 'user_password2',
													'label' => 'Password confirmation',
													'rules' => 'required|min_length[5]|max_length[12]|matches[user_password]'
												),
											array(
													'field' => 'user_email',
													'label' => 'Email',
													'rules' => 'required|valid_email'
												),
											array(
													'field' => 'user_group',
													'label' => 'Group',
													'rules' => 'required|integer'
												)
										),
										
					'edit_user_admin' => array(
											array(
													'field' => 'display_name',
													'label' => 'Display Name',
													'rules' => 'required|min_length[4]|max_length[60]'
												),
											array(
													'field' => 'user_password',
													'label' => 'Password',
													'rules' => 'min_length[5]|max_length[12]|matches[user_password2]'
												),	
											array(
													'field' => 'user_password2',
													'label' => 'Password confirmation',
													'rules' => 'min_length[5]|max_length[12]|matches[user_password]'
												),
												array(
														'field' => 'user_email',
														'label' => 'Email',
														'rules' => 'required|valid_email'
													),
												array(
														'field' => 'user_group',
														'label' => 'Group',
														'rules' => 'required|integer'
													)
											),
					
					'add_news_admin' => array(
											array(
													'field' => 'title',
													'label' => 'title',
													'rules' => 'required|min_length[4]|max_length[60]'
												),
											array(
													'field' => 'content',
													'label' => 'Content',
													'rules' => 'required|min_length[25]'
												),	
	
										),
					
					'user_settings' => array(
												array(
														'field' => 'user_email',
														'label' => 'Email',
														'rules' => 'required|valid_email'
														),
												array(
														'field' => 'user_password',
														'label' => 'Password',
														'rules' => 'required|min_length[5]|max_length[12]|matches[user_password2]'
														),
												array(
														'field' => 'user_password2',
														'label' => 'Password confirmantion',
														'rules' => 'required|min_length[5]|max_length[12]|matches[user_password]'
														)
											),
					'edit_page_admin' => array(
												array(
														'field' => 'page_link',
														'label' => 'URL Safe Name',
														'rules' => 'required'
														),
												array(
														'field' => 'page_title',
														'label' => 'Page Title',
														'rules' => 'required'
														),
												array(
														'field' => 'page_content',
														'label' => 'Page Content',
														'rules' => 'required'
														)
											)
					
				
				);

?>